var should = require('should');
var skillHandler = require('../../../app/servers/rebel/handler/skillHandler');
var config = require('../../config');

suite('测试skillHandler', function () {
    suite('逆袭技能使用', function () {
        test('use', function (done) {
            var msg = {};
            var session = {};
            session.uid = config.other_role_id;

            var skill_handler = new skillHandler();
            skill_handler.use(msg, session, function (err, res) {
                done();
            });
        });

        test('use', function (done) {
            var msg = {};
            msg.skill_type = 10003;
            var session = {};
            session.uid = config.other_role_id;

            var skill_handler = new skillHandler();
            skill_handler.use(msg, session, function (err, res) {
                done();
            });
        });
    });
});
